{{include template('public/header','admin')}}
<style>
    .validform input {
        width: 60%;
        float: left;
    }
</style>
</head>
<body>
    <div class="container">
        <div style="margin: 20px;">
            <form action="{{url($postUrl)}}" method="post" class="form-horizontal validform" id="cpform" name="cpform" role="form" autocomplete='off' >
                <input type='hidden' name='uid' value="{{$uid}}" />
                <table class="table table-border ticky_table">
                    <tr><td class="w_100"> <span class="red">*</span>角色：</td><td>  {{showselectrole($item['roleid'])}}</td></tr>
                    <tr><td class="w_100"> <span class="red">*</span>{{L('member_username')}}：</td><td><input type="text" name="username" value="{{$item.username}}"  class="form-control" datatype="username" nullmsg="请设置{{L('member_username')}}！" /></td></tr>
                    <tr><td class="w_100"><span class="red">*</span>{{L('member_email')}}：</td><td><input type="text" name="email"  value="{{$item.email}}" class="form-control"datatype="e" nullmsg="请设置{{L('member_email')}}！" /></td></tr>
                    <tr><td class="w_100"><span class="red">*</span>验证码：</td><td><input type="text" name="code" value=""  class="form-control" style="width:150px;float: left;"datatype="*4-4" nullmsg="请填写验证码" errormsg="请填写4位验证码" />
                            <img src="{{url('api/index/code')}}" onclick="this.src = this.src + '?'" class="codeimg" title="看不清，换一张">
                        </td></tr>
                    <tr><td></td><td><input type="submit" name="dosubmit" class="btn btn-primary" value="提交" style="width: 54px;" /></td></tr>
                </table>
            </form>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $(".validform").Validform({tiptype: 3, showAllError: true});
        });
    </script>
</body>
</html>